//
//  AXFShowCouponVC.m
//  BEEQUICK
//
//  Created by admin on 21/11/2016.
//  Copyright © 2016 SevenGroup. All rights reserved.
//

#import "AXFShowCouponVC.h"
#import "AXFWhiteNavView.h"

@interface AXFShowCouponVC ()<AXFWhiteNavViewDelegate>

@end

@implementation AXFShowCouponVC

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
}

- (void)setupUI {
	UIWebView *webView = [[UIWebView alloc] initWithFrame:CGRectMake(0, 44, kSCREENWIDTH, kSCREENHEIGHT)];
	[self.view addSubview:webView];
	
	[webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:_urlStr]]];
	
	AXFWhiteNavView *whiteNavView = [[AXFWhiteNavView alloc] init];
	
	[whiteNavView setTitleName:@"积分商城" andFunctionName:nil];
	
	whiteNavView.delegate = self;
	
	[self.view addSubview:whiteNavView];
	
	[whiteNavView mas_makeConstraints:^(MASConstraintMaker *make) {
		make.left.right.top.offset(0);
		make.height.mas_equalTo(kNAVBARH + 20);
	}];
}

- (void)backToViewController {
	[self.navigationController popViewControllerAnimated:YES];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
